home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
stringsearch
/
bmsource
/
sys
/
mips.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-11-21
|
248 b
|
22 lines
|
[
TEXT/MPS
]
#include <sys/types.h>
#include <sys/times.h>
#include <sys/param.h>
int hz = HZ;
double tcmp = 3.29;
static struct tms start;
startclock()
{
times(&start);
}
stopclock()
{
struct tms t;
times(&t);
return(t.tms_utime - start.tms_utime);
}